//
//  GravityControlAppDelegate.m
//  GravityControl
//
//  Created by Javier Quevedo on 10/06/2009.
//  Copyright VRIJE 2009. All rights reserved.
//

#import "GravityControlAppDelegate.h"
#import "ConnectionManager.h"

@implementation GravityControlAppDelegate

@synthesize window;
@synthesize tabBarController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {
    
    // Add the tab bar controller's current view as a subview of the window
	
	[window addSubview:tabBarController.view];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return YES;
	// return YES for supported orientations
	//  return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


/*
// Optional UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
}
*/

/*
// Optional UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed {
}
*/


- (void)dealloc {
    [tabBarController release];
    [window release];
    [super dealloc];
}

@end

